/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.infoweblogic.pojos;

import br.com.infoweblogic.enumeration.Horario;
import br.com.pbs.interfaces.Bean;
import java.util.EnumMap;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MapKey;
import javax.persistence.OneToMany;

/**
 *
 * @author Luiz Segundo
 */
@Entity
public class Disciplina implements Bean {

        

        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Long id;
        @Column
        private String nome;
        @OneToMany(fetch=FetchType.LAZY)
        @MapKey(name="horario")
        private Map<String,String> horario = new HashMap<String, String>();


        public Map<String, String> getHorario() {
                return horario;
        }

        public void setHorario(Map<String, String> horario) {
                this.horario = horario;
        }

        public String getNome() {
                return nome;
        }

        public void setNome(String nome) {
                this.nome = nome;
        }

        public Long getId() {
                return id;
        }

        public void setId(Long id) {
                this.id = id;
        }
}
